package com.xiebiao.springboot3.service;

import com.xiebiao.springboot3.entity.UserEntity;
import com.xiebiao.springboot3.repository.UserRepository;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Bill Xie
 * @since 2025/9/5 16:51
 **/
@Service
public class UserService {
    @Resource
    private UserRepository userRepository;

    public List<UserEntity> getAll() {
        return userRepository.findAll();
    }
}
